package com.kalix.ksh.record.biz;

import com.kalix.framework.core.impl.biz.GenericBizServiceImpl;
import com.kalix.framework.core.util.ConfigUtil;
import com.kalix.ksh.record.api.biz.IManagementObjectRecordBeanService;
import com.kalix.ksh.record.api.dao.IManagementObjectRecordBeanDao;
import com.kalix.ksh.record.api.model.ToInterface;
import com.kalix.ksh.record.entities.ManagementObjectRecordBean;

/**
 *
 * 功能描述: 被管理对象返回数据
 *
 * @auther: Whw
 * @date: 2019/1/14 0014 17:15
 * @param:
 * @return:
 */
public class ManagementObjectRecordServiceImpl extends GenericBizServiceImpl<IManagementObjectRecordBeanDao, ManagementObjectRecordBean> implements IManagementObjectRecordBeanService {
    public ManagementObjectRecordServiceImpl(){

        super.init(ManagementObjectRecordBean.class.getName());
    }
    public static String wsIp = (String) ConfigUtil.getConfigProp("FREEBOARD_IP","config.ksh.portconf");
    public static String wsPort =(String)ConfigUtil.getConfigProp("FREEBOARD_PORT","config.ksh.portconf");


    public String insertAll() {
        String data=ToInterface.interfaceUtil("http://"+wsIp+":"+wsPort+"/om/statistics/category","");
        return data;
    }
}
